package business.client.entities;

import java.util.Date;

import client.entities.ClientVO;

public class Client {

	private int clientId;
	private String name;
	private String lastName;

	private String address;
	private String tel;
	private String cel;

	private Date registrationDate;
	private String birthdate;

	public int getClientId() {
		return clientId;
	}

	public void setClientId(int clientId) {
		this.clientId = clientId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getCel() {
		return cel;
	}

	public void setCel(String cel) {
		this.cel = cel;
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public String getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}

	public Client(int clientId, String name, String lastName, String address,
			String tel, String cel, Date registrationDate, String birthdate) {
		super();
		this.clientId = clientId;
		this.name = name;
		this.lastName = lastName;
		this.address = address;
		this.tel = tel;
		this.cel = cel;
		this.registrationDate = registrationDate;
		this.birthdate = birthdate;
	}

	public Client(ClientVO cli) {
		if (cli != null) {
			this.clientId = cli.getClientId();
			this.name = cli.getName();
			this.lastName = cli.getLastName();
			this.address = cli.getAddress();
			this.tel = cli.getTel();
			this.cel = cli.getCel();
			this.registrationDate = cli.getRegistrationDate();
			this.birthdate = cli.getBirthdate();
		}
	}

	public ClientVO toVO() {
		return new ClientVO(this.clientId, this.name, this.lastName,
				this.address, this.tel, this.cel, this.registrationDate,
				this.birthdate);
	}

}
